/**
 * Created by HUANGFR2 on 8/19/2016.
 */
const mongoose = require('mongoose');

var DishSchema = new mongoose.Schema({
    _id : String,
    status : {
        type : Number,
        default : 0
    },
    createDate : {
        type : Date,
        default : Date.now
    },
    expiredDate : {
        type : Date,
        default : Date.now
    },
    merchant : {
        type: String,
        ref: 'Merchant'
    },
    detail :{}
});
var Dish = mongoose.model('Dish', DishSchema);